import utils

products = []


def pro_add(products):
    new_pro = utils.pro_make()
    for k in products:
        if k['name'] == new_pro['name']:
            print('该商品已存在')
            return 0
    products.append(new_pro)


if __name__ == '__main__':
    pro_add()
